package cn.iocoder.yudao.module.wms.controller.admin.stockdetail.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 库存明细分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class StockDetailPageReqVO extends PageParam {

    @Schema(description = "产品", example = "27550")
    private Long productId;

    @Schema(description = "仓库", example = "6578")
    private Long warehouseId;

    @Schema(description = "库位", example = "31698")
    private Long positionId;

    @Schema(description = "入库时数量")
    private BigDecimal totalStockQty;

    @Schema(description = "结余数量")
    private BigDecimal stockQty;

    @Schema(description = "单位成本")
    private BigDecimal unitAmt;

    @Schema(description = "合计成本")
    private BigDecimal costAmt;

    @Schema(description = "批次号")
    private String batchNo;

    @Schema(description = "序列号")
    private String serialNo;

    @Schema(description = "来源单据", example = "2605")
    private Long docId;

    @Schema(description = "来源单号")
    private String docCode;

    @Schema(description = "单据序号")
    private Integer sequence;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}